package com.neudu.yyzx_service.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("beddetails")
public class BedDetails {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("bed_id")
    private Long bedId;
    @TableField("customer_id")
    private Long customerId;
    @TableField("is_deleted")
    private Integer isDeleted;
    @TableField("start_date")
    private Date startDate;
    @TableField("end_date")
    private Date endDate;

    public BedDetails setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
        return this; // 关键：返回当前对象，支持链式调用
    }
}